<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<jsp:include page="common.jsp"></jsp:include>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     <title>layui 的学习</title> 
  
     <script>
       window.onload=function(){
    	   var btn = document.getElementById('btn');
      	   btn.onclick = function(){
      	   layer.confirm('你怎么看待前端开发',
     				   {btn:['重要','不重要']},
     				   function(){
     					   layer.msg('的确很重要',{icon:1});
     				   },function(){
     			           layer.msg('个人感觉学起来也是比较费时间的',{icon:1});
	        			   
					   }
     		  )
          		   
    	   }
       }    
  	   
		  
   </script>
    
   </head>

   <body>    
	 <input type="button" id="btn" value="问你个问题"/>
   </body>
   
</html>